Calculate the average of a group of numbers